import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login.vue'),
    },
    {
        path: '/',
        redirect: '/dashboard',
    },
    {
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('@/views/Dashboard.vue'),
    },
    {
        path: '/user',
        name: 'User',
        component: () => import('@/views/User.vue'),
    },
    {
        path: '/content',
        name: 'Content',
        component: () => import('@/views/Checklist.vue'),
    },
    {
        path: '/comment',
        name: 'Comment',
        component: () => import('@/views/Comment.vue'),
    },
    // {
    //     path: '/ranking',
    //     name: 'Ranking',
    //     component: () => import('@/views/Ranking.vue'),
    // },
    // {
    //     path: '/system/notice',
    //     name: 'Notice',
    //     component: () => import('@/views/Notice.vue'),
    // },
    // {
    //     path: '/system/config',
    //     name: 'SystemConfig',
    //     component: () => import('@/views/SystemConfig.vue'),
    // },
    // {
    //     path: '/system/stat',
    //     name: 'Stat',
    //     component: () => import('@/views/Stat.vue'),
    // },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;